﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace Entity.Models
{
    [Table("MsgPushRecord")]
    public class MsgPushRecord
    {
        [Key]
        public string RecordId { get; set; }//varchar(50) PRIMARY KEY 记录Id(uuid)
        public string? CompanyNo { get; set; }//Varchar(50) FK:公司代码

        public DateTime? PushTime { get; set; }//datetime 消息推送时间
        public int? PushState { get; set; }//int 推送状态1-未发送2-已发送3-失败
        public string? ErrorMsg { get; set; }// Nvarchar(500)   错误信息
        public int? TargetType { get; set; }//int 接收人员类型1-责任人2-客户
        public string? MessageId { get; set; }//varchar(50)     FK:关联的消息通知Id
        public string? AlarmRecordId { get; set; }//varchar(50) FK:关联的报警记录Id
        public string? MsgChTypeNo { get; set; }//Varchar(50) FK: 消息发送通道
        public string? TargetPlatform { get; set; }//Nvarchar(50)    目标设备平台        ANDROIDIOS……
        public string? TargetMobileNo { get; set; }//Varchar(50) 目标手机号
        public int? DutyOfficerId { get; set; }//Int FK:责任人Id
        public int? DeviceId { get; set; }//Int FK:设备Id
        public string? CustMobileNo { get; set; }//Varchar(50) Idx：客户手机号
        public string? JPushDevId { get; set; }//Varchar(50) 极光设备标识
        public string? WeiXinId { get; set; }//Varchar(50) 微信用户标识
        public string? TemplateId { get; set; }//Varchar(50) 消息模板ID
        public string? MsgParams { get; set; }//json 消息参数
        public string? ExtData { get; set; }//json    附加数据
        public int? IsRead { get; set; }//int 已读标志0 – 未读1 – 已读
    }
}
